<form name="frmpost" action="index.php?module=cuentaCte&amp;view=save" method="post" onsubmit="return frmpost_Validator(this)">
<br/>
<table>
    <tr>
        <td class="details_screen cuentFieldName" >{$LANG.customer_name}</td>
        <td><input type="text" id="customerName" autocomplete="off" size="25"/></td>
        <td/>
    </tr>
    <tr>
        <td class="details_screen cuentFieldName">{$documento}</td>
        <td><input type="text" size="10" id="dni" /></td>
        <td><input type="hidden" name="customerId" id="customerId"/></td>
    </tr>
    <tr>
        <td>
            <br/>  <div class="buttons" style="cursor:pointer" id="getCustomOwe"><a href="#"><img src="images/flexigrid/magnifier.png" />BUSCAR</a></div>
        </td>
    </tr>
    <!-- unpaid invoices-->
    <tr >
        <td colspan="2">
        {if $hasUnpaid == null}
        	<br/>
        	<br/>
        	<span class="welcome">{$LANG.no_payments_invoice}</span>
        	<br/>
        	<br/>
        {else}
            <br/>
            <table id="manageGrid" style="display:none"></table>
        	{include file='../modules/cuentaCte/manage.js.php' }
       
        {/if}
        </td>
        
    </tr>
    <tr>
        <td class="details_screen cuentFieldName">{$LANG.saldo}</td>
        <td><input type="text" id="totalOwe" size="7"  readonly="true"/></td>
    </tr>
    <tr>
        <td class="details_screen cuentFieldName">{$LANG.amount}</td>
        <td><input type="text" name="amount" autocomplete="off" id="amountCtaCte" size="7" value=""/></td>
    </tr>
    <tr>
        <div class="demo-holder">
		<td class="details_screen">{$LANG.date_formatted}</td>
		<td><input type="text" class="date-picker"  name="ac_date" id="date1" value="{$today|htmlsafe}" /></td>
	</div>
    </tr>
    <tr>
        <td class="details_screen cuentFieldName">{$LANG.payment_type_method}</td>
        <td>
                    {if $paymentTypes == null}
                    <p><em>{$LANG.no_payment_types}</em></p>
            {else}


                    <select name="ac_payment_type">
                            {foreach from=$paymentTypes item=paymentType}
                                    <option value="{$paymentType.pt_id|htmlsafe}" {if $paymentType.pt_id == $defaults.payment_type}selected{/if}>
                                            {$paymentType.pt_description|htmlsafe}
                                    </option>
                            {/foreach}
                    </select>
            {/if}
        </td>
    </tr>
    <tr>
        <td class="details_screen cuentFieldName">{$LANG.discount}(%)</td>
        <td><input type="text" name="discount" value="0.00" id="discountCtaCte" name="discount" size="4"/></td>
    </tr>
    <tr>
        <td class="details_screen cuentFieldName">{$LANG.total_pay}</td>
        <td><input type="text" name="paidWithDiscount" id="totalDiscountCtaCte" size="7" readonly/></td>
    </tr>
    
</table>
<table class="buttons" align="center">
    <tr>
        <td>
            <button type="submit" class="positive" name="process_payment" value="{$LANG.save}">
                <img class="button_img" src="./images/common/tick.png" alt="" /> 
                {$LANG.save}
            </button>
        
            <a href="./index.php?module=payments&amp;view=manage" class="negative">
                <img src="./images/common/cross.png" alt="" />
                {$LANG.cancel}
            </a>
    
        </td>
    </tr>
 </table>
</form>